package ModelLayer;

import java.util.ArrayList;

public class Instructor extends Person {

	private String ssn;
	private ArrayList<ActivityType> activities;

	public Instructor() {
		super();
		activities = new ArrayList<>();
	}

	public Instructor(int ID) {
		super(ID);
	}

	public String getSsn() {
		return ssn;
	}

	public void setSsn(String ssn) {
		this.ssn = ssn;
	}

	public ArrayList<ActivityType> getActivities() {
		return this.activities;
	}

	public void addActivity(ActivityType activity) {
		this.activities.add(activity);
	}

	public void removeActivity(ActivityType activity) {
		for (ActivityType at : activities) {
			if (at.getID() == activity.getID())
				activities.remove(at);
		}
	}

	public void updateActivity(long ID, ActivityType activity) {

	}

}
